module decoder_38 (
    input [2:0] A,  // 3位输入信号
    output [7:0] Y  // 译码器输出
);

assign Y[0] = ~(A[2] & A[1] & A[0]);
assign Y[1] = ~(A[2] & A[1] & ~A[0]);
assign Y[2] = ~(A[2] & ~A[1] & A[0]);
assign Y[3] = ~(A[2] & ~A[1] & ~A[0]);
assign Y[4] = ~(~A[2] & A[1] & A[0]);
assign Y[5] = ~(~A[2] & A[1] & ~A[0]);
assign Y[6] = ~(~A[2] & ~A[1] & A[0]);
assign Y[7] = ~(~A[2] & ~A[1] & ~A[0]);

endmodule
